// 工具栏
export const toolbarOptions = [
  ["bold", "italic", "underline", "strike"], // 加粗 斜体 下划线 删除线 -----['bold', 'italic', 'underline', 'strike']
  [{ list: "ordered" }, { list: "bullet" }], // 有序,无序列表-----[{ list: 'ordered' }, { list: 'bullet' }]
  ["blockquote", "code-block"], // 引用  代码块-----['blockquote', 'code-block']
  ["image", "link"], // 链接,图片,视频-----['link', 'image', 'video']
];

export const letterList = [
  "A",
  "B",
  "C",
  "D",
  "E",
  "F",
  "G",
  "H",
  "I",
  "J",
  "K",
  "L",
  "M",
  "N",
  "O",
  "P",
  "Q",
  "R",
  "S",
  "T",
  "U",
  "V",
  "W",
  "X",
  "Y",
  "Z",
];

export const optionsList = [
  { isRight: false, code: "A", title: "", img: "" },
  { isRight: false, code: "B", title: "", img: "" },
  { isRight: false, code: "C", title: "", img: "" },
  { isRight: false, code: "D", title: "", img: "" },
];

// 正则校验
export const rules = {
  subjectID: [{ required: true, message: "学科不能为空", trigger: "change" }],
  catalogID: [{ required: true, message: "请选择目录", trigger: "change" }],
  enterpriseID: [{ required: true, message: "请选择企业", trigger: "change" }],
  province: [{ required: true, message: "请选择城市", trigger: "change" }],
  city: [{ required: true, message: "请选择区", trigger: "change" }],
  direction: [{ required: true, message: "请选择方向", trigger: "change" }],
  questionType: [{ required: true, message: "请选择题型", trigger: "change" }],
  difficulty: [{ required: true, message: "试题难度", trigger: "change" }],
  question: [{ required: true, message: "题干不能为空", trigger: "blur" }],
  answer: [{ required: true, message: "答案解析为空", trigger: "change" }],
  videoURL: [{ required: true, message: "视频解析为空", trigger: "change" }],
  remarks: [{ required: true, message: "解析试题为空", trigger: "change" }],
  // tags: [{ required: true, message: "解析试题为空", trigger: "change" }],
};
// 解决 解析试题与解析试题为null问题
export const form = {
  subjectID: "", // 学科
  catalogID: "", // 目录
  enterpriseID: "", // 企业
  province: "", // 省
  city: "", // 城市
  direction: "", // 方向
  questionType: "1", // 选择
  difficulty: "1", // 难度
  question: "", // 文章内容
  options: [
    { isRight: false, code: "A", title: "", img: "" },
    { isRight: false, code: "B", title: "", img: "" },
    { isRight: false, code: "C", title: "", img: "" },
    { isRight: false, code: "D", title: "", img: "" },
  ], // 试题
  videoURL: null || "", // 解析视频
  answer: "", // 答案解析
  remarks: null || "", // 解析试题
  tags: "", // 试题标签
};
